package com.proxy.jdkProxy;



/**
 * ecs
 *
 * @Title: com.proxy
 * @Date: 2020/3/22 15:15
 * @Author: wfg
 * @Description:
 * @Version:
 */
public class Client {
    public static void main(String[] args) {

        IUserDao userDao = new UserDao();
        ProxyFactory proxyFactory = new ProxyFactory(userDao);
        IUserDao userDaoProxy = (IUserDao)proxyFactory.getProxyFactoryInstatince();
        userDaoProxy.say();
        userDaoProxy.checkUser("zhangsan");
        userDaoProxy.save("lisi");
    }
}
